<cfif Attributes.i EQ 1>
<cfset Attributes.i = 2>
<html>
	<head>
		<link href="../style.css" rel="stylesheet" type="text/css" />
		<link href="entries.css" rel="stylesheet" type="text/css" />
		<title>Eintragverwaltung - cfProtocol</title>
		<script src="../data/js/prototype.js" type="text/javascript"></script>
		<script src="../data/js/scriptaculous.js" type="text/javascript"></script>
		<script src="./entries.js" type="text/javascript"></script>
		<script src="./endless.js" type="text/javascript"></script>
	</head>
	<body>
		<input type="hidden" value="0" id="info_visible">
		<cfinvoke
			component="#caller.comEntries#"
			method="countDays"
			returnVariable="max">
		<input type="hidden" value="<cfoutput>#max#</cfoutput>" id="info_max">
		<div class="wrapper">
		<cfmodule template="../menu.cfm" i="1" >

		<form style="position: relative;" method="post" action="javascript:<!---<cfif Request.sysadmin NEQ 1 >--->ajaxAdd();<!---<cfelse>ajaxMasterButton();</cfif>--->" class="add" id="addForm">
			<select name="day" id="day">
			<cfset i = 1>
			<cfloop condition = "i LT 32">
				<option value="<cfoutput>#NumberFormat(i, '00')#</cfoutput>"<cfif DateFormat(now(), 'd') EQ i> selected</cfif>><cfoutput>#i#</cfoutput></option>
				<cfset i = i+1>
			</cfloop>
			</select>

			<select name="month" id="month">
			<cfset i = 1>
			<cfloop condition = "i LT 13">
				<cfset j = i>
				<option value="<cfoutput>#NumberFormat(i, '00')#</cfoutput>"<cfif DateFormat(now(), 'm') EQ i> selected</cfif>><cfoutput>#MonthAsString(i)#</cfoutput></option>
				<cfset i = i+1>
			</cfloop>
			</select>

			
			<input type="text" class="year" value="<cfoutput>#DateFormat(now(), 'yyyy')#</cfoutput>" name="year" id="year" size="4" maxlength="4">
			<!---<cfif Request.sysadmin NEQ 1 >--->
			&nbsp;&nbsp;&nbsp;
			

			<input type="text" name="text" id="text" maxlength="200"><select style="display: none; width: 620px; text-align: left;" id="text2" name="text2"></select> <input type="submit" value="&raquo;" class="submit"><!---<cfelse>
			<input type="submit" value="KREIERE MIR EINEN TAG!" style="background-color: #009000; color: white;">
			</cfif>--->
			<img src="../data/icons/database.png" alt="Wiederkehrende Aufgaben" title="Wiederkehrende Aufgaben" style="position: absolute; right: 5px; top: 12px; cursor: pointer;" onclick="showTemplateMenu();" id="tmp1">
			<img src="../data/icons/database_save.png" alt="Wiederkehrende Aufgabe hinzuf&uuml;gen" title="Wiederkehrende Aufgabe hinzuf&uuml;gen" style="position: absolute; right: 5px; top: 2px; cursor: pointer; display: none;" id="tmp2" onclick="addTemplate()">
			<img src="../data/icons/database_table.png" alt="Wiederkehrende Aufgabe ausw&auml;hlen" title="Wiederkehrende Aufgabe ausw&auml;hlen" style="position: absolute; right: 5px; bottom: 2px; cursor: pointer; display: none;" id="tmp3" onclick="showTemplates()">
			<img src="../data/icons/database_delete.png" alt="Wiederkehrende Aufgabe ausw&auml;hlen" title="Wiederkehrende Aufgabe l&ouml;schen" style="position: absolute; right: 5px; top: 12px; cursor: pointer; display: none;" id="tmp4" onclick="deleteTemplate()">
		</form>
		<div id="failure" class="failure" style="display: none;"><strong>Fehler:</strong> Bitte versuche es sp&auml;ter nocheinmal.</div
		
<cfelseif Attributes.i EQ 2>
		<div id="list">
		</div>
			<div id="more_entries">- <a href="javascript:getList($('info_visible').value);">Weiter</a> -</div>
	</div>
	</body>
</html>
<cfelse>
	Diese Datei bitte nicht direkt aufrufen!
</cfif>